<template>
  <div>
    <van-pagination v-model="currentPage" total-items="total" items-per-page="2" @change="change"/>
  </div>
</template>

<script>
export default {
  name: "page1",
  props:['total'],
  data(){
    return{
      currentPage:1
    }
  },
  methods:{
    change(v){
      this.axios.$emit('currentP',v)
    }
  }
}
</script>

<style scoped>

</style>
